<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>JavaScript输出当前时间</title>
</head>
<body>
<h1>
    <center>
        输出当前时间
    </center>
</h1>
<hr>
<h3>
    <center>
        <script>
            document.writeln(Date());
        </script>
    </center>
</h3>
</body>
</html>